﻿using System;
using System.Text;
using System.Collections;
using UnityEngine;
using Common;

namespace Common
{
    public class WaitHandle
    {
        public static void Start(float f, TaskHandle callBack)
        {
            Define.Mono.StartCoroutine(start(f, callBack));
        }
        private static IEnumerator start(float f, TaskHandle callBack)
        {
            yield return new WaitForSeconds(f);
            callBack();
        }
    }
}

